import request from '@/utils/request'

// 查询重大事项列表
export function listDealMatters(query) {
  return request({
    url: '/matters/dealMatters/list',
    method: 'get',
    params: query
  })
}

// 查询重大事项详细
export function getDealMatters(id) {
  return request({
    url: '/matters/dealMatters/' + id,
    method: 'get'
  })
}

// 保存重大事项
export function saveDealMatters(data) {
  return request({
    url: '/matters/dealMatters/save',
    method: 'post',
    data: data
  })
}

// 删除重大事项
export function delDealMatters(id) {
  return request({
    url: '/matters/dealMatters/' + id,
    method: 'delete'
  })
}

// 导出重大事项
export function exportDealMatters(query) {
  return request({
    url: '/matters/dealMatters/export',
    method: 'get',
    params: query
  })
}

// 最新(发生时间)重大事项
export function findLatestMatters(query) {
  return request({
    url: '/matters/dealMatters/findLatestMatters',
    method: 'get',
    params: query
  })
}
